<?php

/**
 * 管理后台函数方法
 *
 *
 * @author     wangpeng
 * @version    1.0
 * @package    Base Framework
 * @access     public
 * @copyright  商业软件,受著作权保护
 * @link       http://***
 */

class Admin extends Base
{
	/**
	 * 是否登录
	 * 
	 * @param int $tagid
	 */
	public function isAdminLogin()
	{
		if(parent::$admin['adminid'])
		{
			return true;
		}

		return false;
	}

	/**
	 * 是否登录
	 * 
	 * @param int $tagid
	 */
	public function loadCustom()
	{
		//设置分页
		if($_POST['pagenumber'] > 1)
		{
			if($_SESSION['libvar']['pageset'] != $_POST['pagenumber'])
			{
				$_SESSION['libvar']['pageset'] = $_POST['pagenumber'];
			}
		}
		elseif(!$_SESSION['libvar']['pageset']) $_SESSION['libvar']['pageset'] = "20";

		$this->smarty->assign("pageset", VarData::$CFPageset);
		$this->smarty->assign("libvar", $_SESSION['libvar']);
	}
}
?>